﻿using System;
using DevExpress.XtraEditors;
using MikroObject;
using System.Windows.Forms;

namespace Aktarim
{
    public partial class frmSabitVeriAktar : XtraForm
    {
        public frmSabitVeriAktar()
        {
            InitializeComponent();
        }

        private void frmSabitVeriAktar_Load(object sender, EventArgs e)
        {

        }

        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Data dt = new Data();
            Synchronous senk = new Synchronous();
            
            if (chkAlt.Checked)
                senk.AltGrupAktar(dt.AltGrupList());

            if (chkAna.Checked)
                senk.AnaGrupAktar(dt.AnaGrupList());

            if (chkDepo.Checked)
                senk.DepoAktar(dt.DepoList());

            if (chkStok.Checked)
                senk.StokAktar(dt.StokList());

            if (chkTeminci.Checked)
                senk.CariAktar(dt.CariList());

            if (chkKasa.Checked)
                senk.KasaAktar(dt.KasaList());

            MessageBox.Show("İşlem Tamamlandı");
        }
    }
}
